package com.woniuxy.yoga.business.client;

import com.woniuxy.yoga.business.model.form.businesspayment.PaymentLogForm;
import com.woniuxy.yoga.business.model.form.coach.StoreQueryNormalCoachForm;
import com.woniuxy.yoga.commons.core.model.PageInfo;
import com.woniuxy.yoga.commons.core.model.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@FeignClient(name = "coach-service",path = "/coach")
public interface CoachClient {

    /**
     * 商家查询自己的教练
     * @param storeQueryNormalCoachForm
     * @return
     */
    @PostMapping("/coach/storeQueryNormalCoach.bu")
    public Result<PageInfo> storeQueryAllCoach(@RequestBody StoreQueryNormalCoachForm storeQueryNormalCoachForm);

    /**
     * 批量删除教练
     * @param storeId
     * @return
     */
    @GetMapping("/coach/removeCoach/{storeId}")
    public Result<?> removeCoach(@PathVariable("storeId") Integer storeId);

}
